
import fetch from "./fetch";

function request(url, method, data) {
    console.log(url, method, data)
    switch (method) {
        case "get":
            return fetch({
                method: "get",
                url,
            });
        case "post":
            return fetch({
                method: "post",
                url,
                data,
            });
        default:
            return fetch;
    }
}

export default request;

